python bold

132

python bold -

# Make sure to run in the right terminal

red = '\033[91m'
green = '\033[92m'
blue = '\033[94m'
bold = '\033[1m'
italics = '\033[3m'
underline = '\033[4m'
end = '\033[0m'

print (red + underline + 'Test!... Test!' + end)

make text bold python -

class color:
   BOLD = '\033[1m'
   END = '\033[0m'

print(color.BOLD + 'Hello World !' + color.END)

how to bold in colorama -

from simple_colors import *
print(green('hello', 'bold'))

Comments

Submit
0 Comments